package cn.kingyang.yiyi.ui.fragment.base;

import android.content.Intent;

import cn.kingyang.yiyi.mvp.presenter.BasePresenter;
import cn.kingyang.yiyi.mvp.view.BaseView;


/**
 * 懒加载
 * Created by YoKeyword on 16/6/5.
 */
public abstract class BaseMainFragment<V extends BaseView, P extends BasePresenter> extends BaseFragment<V, P>  {
    protected void go(Class<?> clazz) {
        Intent intent = new Intent(_mActivity, clazz);
        startActivity(intent);
        _mActivity.finish();
    }

    protected void start(Class<?> clazz) {
        Intent intent = new Intent(_mActivity, clazz);
        startActivity(intent);
    }
}
